On Dec 24, 2:19 am, Simon Harris <haruki.zae...@gmail.com> wrote:
> Does rubinius perform any kind of TOC or are there any plans?
We currently do not do any tail call optimizations. One big reason is
that tail call optimizations typically destroy proper backtrace
information. I consider that an unacceptable side-effect for any kind
of automatic tail call detection.
I might consider some explicit tail call tagging, where the user
understands that using it means confusing backtraces.
A simple syntax like:
return Rubinius.tailcall obj.method(....)
would maybe be acceptable.
- Evan
Of course were an explicit call required, I'd probably use it anyway
and implement it on other platforms as a stub :/
--
Kevin Clark
http://glu.ttono.us
If having an explicit method would speed acceptance, I'd be happy to
compromise :)
Is this something I could do in Ruby or will it require C++? The
former I can have a go at; the latter not so much :/